package com.copa.module.user.service;

import com.copa.domain.ResponseDto;
import com.copa.module.user.domain.dto.UserAddressDto;
import com.copa.module.user.domain.vo.UserAddressAddVo;
import com.copa.module.user.domain.vo.UserAddressUpdateVo;

import java.util.List;

/**
 * @author copa
 * @createDate 2021-01-14 13:42
 * @function
 */
public interface UserAddressService {

    ResponseDto<List<UserAddressDto>> list(String openId);

    ResponseDto<String> add(UserAddressAddVo userAddressAddVo, String openId);

    ResponseDto<UserAddressDto> get(Long addressId, String openId);

    ResponseDto<String> put(UserAddressUpdateVo userAddressUpdateVo, String openId);

    ResponseDto<UserAddressDto> getDefaultAddress(String openId);
}
